AD = eval(input())
CD = eval(input())
r = ((0.5*AD)*(0.5*AD)+CD*CD)/(2*CD)
print(f'{r:.2f}')
